#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:4996)
#include<stdio.h>
size_t My_strlen(char *p) {
    char* p1 =p;
    while (*p!='\0') {
        p++;
    }
    return p - p1;
}
int main(){
    char str[100] = { 0 };
    gets(str);
    int n = (size_t)My_strlen(str);
    printf("%d", n);
    
    return 0;
}